<div class="box">
    <div class="box-header ">

        <ob_link><a class="btn" href="{:url('qrcodeAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>
        &nbsp;
        <div class="box-tools ">
            <div class="input-group input-group-sm search-form">
                <input name="search_data" class="pull-right search-input" value="{:input('search_data')}" placeholder="账号" type="text">
                <div class="input-group-btn">
                    <button type="button" id="search" url="{:url('withdrawList')}" class="btn btn-default"><i class="fa fa-search"></i></button>
                </div>
            </div>
        </div>
        <br/>
    </div>
    <div class="box-body table-responsive">
        <table  class="table table-bordered table-hover">
            <thead>
                <tr>
                    <th>会员名称(手机号)</th>
                    <th>订单号</th>
                    <th>金额</th>
                    <th>到账金额</th>
                    <th>手续费</th>
                    <th>用户备注</th>
                    <th>备注</th>
                    <th>审核管理员</th>
                    <th>添加时间</th>
                    <th>更新时间</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
            </thead>
            {notempty name='list'}
            <tbody>
                {volist name='list' id='vo'}
                <tr>
                    <td>{$vo.username}</td>
                    <td>{$vo.order_no}</td>
                    <td>{$vo.money}</td>
                    <td>{$vo.real_money}</td>
                    <td>{$vo.fee}</td>
                    <td>{$vo.user_note}</td>
                    <td>{$vo.note}</td>
                    <td>{$vo.nickname}</td>
                    <td>{$vo.create_time}</td>
                    <td>{$vo.update_time}</td>
                    <td>{$status[$vo.status]}</td>
            <td class="text-center">
            <ob_link>
                {if condition="($vo.status == 0) "} 
                <a class="btn check"  data-url="{:url('docheck', array('id' => $vo['id']))}">审核</a>
                {else /} 
                {/if}
            </ob_link></ob_link>
            
            </td>
            </tr>
            {/volist}
            </tbody>
            {else/}
            <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>  
            {/notempty}
        </table>
    </div>

    <div class="box-footer clearfix text-center">
        {$list->render()}
    </div>

</div>
<script>
    $(".check").click(function () {

        var url = $(this).attr('data-url');
        layer.open({
            type: 2,
            title: "审核",
            shade: 0.5,
            area: ['60%', '60%'],
            shift: 2,
            btn: ['关闭'],
            cancel: function (index, layero) {
            },
            content: [url],
            end: function (result) {
            }
        });

    })
</script>
<script type="text/javascript">
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        laydate.render({
            elem: '#deal_se_time'
            , type: 'date'
            , range: '~' //或 range: '~' 来自定义分割字符
        });

    });
</script>